#!/usr/bin/python
# -*- encoding:UTF-8 -*-
# while循环
a = 1
while a < 10:
    print(a)
    a += 2

numbers = [12, 37, 5, 42, 8, 3]
even = []
odd = []
while len(numbers) > 0:
    number = numbers.pop()
    if (number % 2 == 0):
        even.append(number)
    else:
        odd.append(number)
print("even list :", even)
print("odd list :", odd)

var = 1
while var == 0:
    num = raw_input("Enter a number :")
    print("You entered: ", num)
print("Good Bye.")

for letter in 'Python' :
    print('current letter:', letter)

fruits = ['banana', 'apple', 'mango']
for index in range(len(fruits)):
    print("current fruit:",fruits[index])
print("Good Bye")

sequence = [12, 34, 34, 23, 45, 76, 89]
for i, j in enumerate(sequence):
    print(i, j)

import math
print(dir(math))
import cmath
print(dir(cmath))